﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Data;

namespace IQKS.AWP.DataAccessLayer
{
   public class LanugageMasterDAL
    {

        public DataSet GetLanguageMaster(params object[] param)
        {
            DataSet objDs;

            try
            {
                objDs = DataUtils.ExecuteDataset("Usp_GetLanguageMaster", param);
                
            }
            catch (Exception exception)
            {
                throw new ApplicationException(exception.Message);
            }
            return objDs;
        }


        public object SetLanguageMaster(params object[] param)
        {
            try
            {
                return DataUtils.ExecuteScalar("Usp_SetLanguageMaster", param);
            }
            catch (Exception ex)
            {
                throw new ApplicationException(ex.Message);
            }
        }


        public DataSet GetLanguageMasterActive()
        {
            DataSet objDs;

            try
            {
                objDs = DataUtils.ExecuteDataset("Usp_GetLanguageMasterActive");

            }
            catch (Exception exception)
            {
                throw new ApplicationException(exception.Message);
            }
            return objDs;
        }



    }
}



